<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" 	prefix="s"%>
<%@ include file="/jsp/common/common_head.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>示界港管理平台</title>
<%@ include file="/jsp/common/common_script.jsp"%>
<style type="text/css">
</style>
<script type="text/javascript">
 var g_userId = '<%=session.getAttribute("userId")%>';
</script>
</head>
<body>
<table class="queryTable" >
	<tr>
		<td class="queryTitle" width="68px">价格状态</td>
		<td class="queryContent">
			<select id="queryJgState" class="easyui-combobox" panelHeight="auto" editable="false" style="width: 120px" >
				<option value="0" selected>[不限]</option>
				<option value="10">有效</option>
				<option value="20">无效</option>
			</select>
		</td>
		<td class="queryTitle" width="120px">数量显示值</td>
		<td class="queryContent">
			<input class="inputText" type="text" id="queryJgShow" />
		</td>
		<td class="queryBtnTd">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search"  onclick="doQuery()">查询</a>
		</td>
</table>

<table id="priceGrid"></table>
<div id="editDlg" class="easyui-window" title="" closed="true" style="width:800px; height:450px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:10px;padding-right:10px;">
		<form id="editForm"  method="POST">
			<s:hidden name="editJgId" id="editJgId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="editTable">
				<tr>	
					<td class="queryTitle" width="100px">价格编号</td>
					<td class="queryContent" >
						<span id="editJgNo" style="color:red;"></span>
					</td>
				</tr>
				<tr>
					<td class="queryTitle" width="100px">价格(单位分)</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editJgPrice" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">计量单位</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editJgUnit" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">数量最大值</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editJgMax" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">数量最小值</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editJgMin" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">数量显示值</td>
					<td class="queryContent" colspan="3">
						<input class="inputText" type="text" style="width:400px" id="editJgShow" />
					</td>
				</tr>
				<tr>	
					<td class="queryTitle" width="100px">备注</td>
					<td class="queryContent" colspan="3">
						<textarea id="editJgDesc" name="editJgDesc" rows="3" cols="55" class="inputText easyui-validatebox" style="width:100%;resize:none;" data-options="required:true,validType:['maxLength[100]']"></textarea>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="editBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doEdit()">确定</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelEdit()">取消</a>
    </div>
</div>
<div id="stateDlg" class="easyui-window" title="" closed="true" style="width:600px; height:280px;text-align:center; background: #fff;">
	<div border="false" style="padding-left:20px;">
		<form id="stateForm"  method="POST">
			<s:hidden name="updJgId" id="updJgId"/>
			<table border="0" class="queryTable" width="95%" height="auto" style="margin-bottom:0px;" id="stateTable">
				<tr>	
					<td class="queryTitle" width="100px">价格编号</td>
					<td class="queryContent" >
						<span id="updJgNo" style="color:red;"></span>
					</td>
				</tr>
				<tr>
					<td class="queryTitle" width="100px">反馈状态</td>
					<td class="queryContent">
						<select id="updJgState" class="easyui-combobox" panelHeight="auto" editable="false" style="width:120px" >
							<option value="0" selected>[未知]</option>
							<option value="10">有效</option>
							<option value="20">无效</option>
						</select>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="clear:both;padding-top:10px;margin-bottom:10px;text-align:center;" id="stateBtn">
		<a class="easyui-linkbutton" iconCls="icon-ok" href="javascript:void(0)" onclick="doUpdState()">更新</a>
		<a class="easyui-linkbutton" iconCls="icon-cancel" href="javascript:void(0)" onclick="cancelUpdState()">取消</a>
    </div>
</div>
<script type="text/javascript" src="${ctx}/js/trade/priceInfo.js"></script>
<script type="text/javascript" src="${ctx}/js/encrypt/encrypted-min.js"></script>
</body>
</html>
